﻿<?php
	session_start();
	require 'usercheck.php';
	$usercon = mysql_connect("localhost","polymer","6uzCxvzP");
	//$usercon = mysql_connect("localhost","reagentd","geD6k3d05Z");
	$flag=0;
	if (!$usercon)
  	{
  		die('Could not connect: ' . mysql_error());
  	}
	mysql_select_db("polymer", $usercon);
	//mysql_select_db("reagentd_db", $con);
	mysql_query("set names 'utf8'");
	$res_temp=mysql_query("SELECT admin FROM reagent_data WHERE id='".$_GET['id']."'");
	$row_temp = mysql_fetch_array($res_temp);
	//echo "$currenttype";
	if($currentadmin==$row_temp['admin']||$currenttype=='boss') $flag=1;
	$res_temp=mysql_query("SELECT yc FROM reagent_data WHERE id='".$_GET['id']."'");
	$row_temp = mysql_fetch_array($res_temp);
	if($row_temp['yc']==0) $flag=1;
	//echo $flag;
	if($flag==0) die("无权限！");
?>